<%@ page contentType="text/html; charset=utf-8" %>
<%@ page import="org.util.Constants" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>

<html>
    <head>
        <title>OSDiary Administrator Panel</title>
        <link href="css/style.css" rel="stylesheet" type="text/css">
        <meta content="text/html; charset=utf-8" http-equiv="content-type">
        <script src="js/prototype.js" type="text/javascript" />
    </head>
    <body>

        <s:if test="#session.loginedAsAdmin != 'true'">

            Log in as admin

        </s:if><s:else>

            <table align="center">

                <tr>
                    <td>
                        <img src="images/logo.png" width="200" height="100" alt="logo"/>
                    </td>
                    <td>
                        <img src="#" width="600" height="100" alt="logo"/>
                    </td>
                </tr>

                <tr>
                    <td>

                        <jsp:include page="../WEB-INF/jspparts/admin/menu.jsp" />

                    </td>
                    <td>
                        
                        <display:table name="events" requestURI="/ListALLevents.action" pagesize="<%=Constants.PAGE_SIZE%>"
                        sort="external" defaultsort="1" partialList="true" size="totalCount" id="allEvents"
                        style="border:1px;width:100%;">
                            <display:setProperty name="paging.banner.no_items_found" value="events" />
                            <display:setProperty name="paging.banner.some_items_found" value="Page [{4}] from [{5}]   " />
                            <display:setProperty name="paging.banner.placement" value="both" />
                            
                            <display:column property="id" titleKey="id" sortable="true" sortName="ID" />
                            <display:column property="name" titleKey="name" sortable="true" sortName="NAME" />
                            <display:column property="place" titleKey="place" sortable="true" sortName="PLACE" />
                        </display:table>
                        
                    </td>
                </tr>

                <tr>
                    <td>
                        &copy;2009 All Rights Reserved
                    </td>
                    <td>
                        <a href="#">link</a> |
                        <a href="#">link</a> |
                        <a href="#">link</a> |
                        <a href="#">link</a> |
                        <a href="#">link</a> |
                        <a href="#">link</a>

                    </td>
                </tr>

            </table>

        </s:else>

    </body>
</html>